package thread;

public class ThreadDemo20 {
    public static void main(String[] args) {
        Thread thread=new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("内部类实现Runnable创建线程");
            }
        });
        thread.start();
        System.out.println("主线程");
    }
}
